home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mission to McDonaldLand
/
Mission To McDonaldLand.iso
/
npole.dxr
/
00038_Script_INSIDEBOTH
< prev
next >
Wrap
Text File
|
1998-10-29
|
2KB
|
74 lines
on enterFrame
global heading
global move
global updown
global nomore
global restoration
global castrestore
global CStop
if CStop = 1 then
if the mouseH < the locH of sprite 30 then set the member of sprite 30 = "Left"
if the mouseH > the locH of sprite 30 then set the member of sprite 30 = "Right"
abort
end if
if the mouseV < 270 or the mouseH > the locH of sprite 30 - 20 and the mouseH < the locH of sprite 30 + 20 then
if heading = 1 then set the member of sprite 30 = "Left"
if heading = 2 then set the member of sprite 30 = "Right"
set move = 0
end if
if the mouseH > the locH of sprite 30 + 19 and the mouseV > 270 then
set the member of sprite 30 = "Walk Right"
set heading = 2
set move = 1
set the locH of sprite 30 = the locH of sprite 30 + 15
end if
if the mouseH < the locH of sprite 30 - 19 and the mouseV > 270 then
set the member of sprite 30 = "Walk Left"
set heading = 1
set move = 1
set the locH of sprite 30 = the locH of sprite 30 - 15
end if
if the mouseV > the locV of sprite 30 and the mouseV < the locV of sprite 30 + 50 then
if move = 0 and heading = 1 then set the member of sprite 30 = "Left"
if move = 0 and heading = 2 then set the member of sprite 30 = "Right"
set updown = 0
end if
if the mouseV < the locV of sprite 30 then
if the locV of sprite 30 > 300 then
if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
set the locV of sprite 30 = the locV of sprite 30 - 5
set updown = 1
end if
end if
if the mouseV > the locV of sprite 30 + 50 then
if the locV of sprite 30 < 350 then
if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
set the locV of sprite 30 = the locV of sprite 30 + 5
set updown = 1
end if
end if
if the locH of sprite 30 > 220 then go to "freeze"
if the locH of sprite 30 < 100 then
if updown = 0 then set the member of sprite 30 = "Left"
set the locH of sprite 30 = 100
end if
end
on exitFrame
go the frame
end